// JavaScript Document

$(document).ready(function(){
	$(".a2").hover(function(){
		    $(".bg2").css({"display":"block"});
			$(".top .nav .a2").css({"background":"#0B6FB0"});
		},function(){
			$(".bg2").css({"display":"none"});
			$(".top .nav .a2").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	$(".bg2").hover(function(){
		    $(".bg2").css({"display":"block"});
			$(".top .nav .a2").css({"background":"#0B6FB0","margin-left":"-2px"});

		},function(){
			$(".bg2").css({"display":"none"});
			$(".top .nav .a2").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	
	$(".a3").hover(function(){
		    $(".bg3").css({"display":"block"});
			$(".top .nav .a3").css({"background":"#0B6FB0"});
		},function(){
			$(".bg3").css({"display":"none"});
			$(".top .nav .a3").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	$(".bg3").hover(function(){
		    $(".bg3").css({"display":"block"});
			$(".top .nav .a3").css({"background":"#0B6FB0","margin-left":"-2px"});

		},function(){
			$(".bg3").css({"display":"none"});
			$(".top .nav .a3").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	
	$(".a4").hover(function(){
		    $(".bg4").css({"display":"block"});
			$(".top .nav .a4").css({"background":"#0B6FB0"});
		},function(){
			$(".bg4").css({"display":"none"});
			$(".top .nav .a4").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	$(".bg4").hover(function(){
		    $(".bg4").css({"display":"block"});
			$(".top .nav .a4").css({"background":"#0B6FB0","margin-left":"-2px"});

		},function(){
			$(".bg4").css({"display":"none"});
			$(".top .nav .a4").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	
	$(".a5").hover(function(){
		    $(".bg5").css({"display":"block"});
			$(".top .nav .a5").css({"background":"#0B6FB0"});
		},function(){
			$(".bg5").css({"display":"none"});
			$(".top .nav .a5").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	$(".bg5").hover(function(){
		    $(".bg5").css({"display":"block"});
			$(".top .nav .a5").css({"background":"#0B6FB0","margin-left":"-2px"});

		},function(){
			$(".bg5").css({"display":"none"});
			$(".top .nav .a5").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	
	$(".a6").hover(function(){
		    $(".bg6").css({"display":"block"});
			$(".top .nav .a6").css({"background":"#0B6FB0"});
		},function(){
			$(".bg6").css({"display":"none"});
			$(".top .nav .a6").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	$(".bg6").hover(function(){
		    $(".bg6").css({"display":"block"});
			$(".top .nav .a6").css({"background":"#0B6FB0","margin-left":"-2px"});

		},function(){
			$(".bg6").css({"display":"none"});
			$(".top .nav .a6").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	
	$(".a7").hover(function(){
		    $(".bg7").css({"display":"block"});
			$(".top .nav .a7").css({"background":"#0B6FB0"});
		},function(){
			$(".bg7").css({"display":"none"});
			$(".top .nav .a7").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	$(".bg7").hover(function(){
		    $(".bg7").css({"display":"block"});
			$(".top .nav .a7").css({"background":"#0B6FB0","margin-left":"-2px"});

		},function(){
			$(".bg7").css({"display":"none"});
			$(".top .nav .a7").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	
	$(".a8").hover(function(){
		    $(".bg8").css({"display":"block"});
			$(".top .nav .a8").css({"background":"#0B6FB0"});
		},function(){
			$(".bg8").css({"display":"none"});
			$(".top .nav .a8").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	$(".bg8").hover(function(){
		    $(".bg8").css({"display":"block"});
			$(".top .nav .a8").css({"background":"#0B6FB0","margin-left":"-2px"});

		},function(){
			$(".bg8").css({"display":"none"});
			$(".top .nav .a8").css({"background":"url(../images/nav_hover_bg.jpg)"});
	});
	
});